package com.hx.pojo;

import org.springframework.stereotype.Component;

/**
 * @author: 若若叶
 * @date: 2021/9/15 11:59 FileName: Student Description:
 */
@Component
public class Student {
  private Integer id;
  private String name;

  public Student() {}

  public Student(Integer id, String name) {
    this.id = id;
    this.name = name;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    return "Student{" + "id=" + id + ", name='" + name + '\'' + '}';
  }
}
